<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/9/1
 * Time: 14:19
 */

namespace app\common\model\user;


use app\common\model\TimeModel;

/**
 * Class UserCoupon
 * @package app\common\model\user
 * 用户关联优惠券
 */
class UserCoupon extends TimeModel
{
    protected $deleteTime = 'delete_time';

    //获取优惠券信息
    public function coupon(){
        return $this->belongsTo('app\common\model\mall\Coupon','coupon_id','id');
    }
}